package com.example.zqh.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 邓龙飞
 * @since 2022-09-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Order对象", description="")
@Accessors(chain = true)
public class Purchase implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单表主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品数量")
    private Integer number;

    @ApiModelProperty(value = "是否支付了（0没支付，1支付了）")
    private Integer payment;

    @ApiModelProperty(value = "总价")
    private Double money;

    @ApiModelProperty(value = "商品id")
    private Integer foodId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;


}
